<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script>


    var ajaxPromise = new Promise(function(resolve){
        resolve();
    });

    ajaxPromise.then(function (){


       return '123';                          //这里必须是同步

    }).then(function (data){
        console.log(data)
    })



</script>
</body>
</html>